package rankingGenerator.statistics;

public class DoubleStatisticValue implements DREComparableStatistic {

	private double value;
	
	public DoubleStatisticValue(double d) {
		this.value = d;
	}

	public int compareTo(DREComparableStatistic dREComparableStatistic) {
		
		DoubleStatisticValue o = (DoubleStatisticValue)dREComparableStatistic;
		
		if (value < o.value)
			return -1;
		if (value > o.value)
			return 1;
		
		return 0;
		
		
	}
	
	public String toString(){
		return Double.toString(value);
	}

}
